#!/bin/bash

mysqllogin="mysql --default-character-set=utf8 -h10.10.10.30 -ujxadmin -p123456 jxcms -e "

# 网站脚本前面必须这样写
echo "Content-Type:text/html;"
echo ""

echo '
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  .container {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    max-width: 1000px;
    width: 100%;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
  th, td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
  }
  th {
    background-color: #f2f2f2;
  }
  .logo {
    text-align: center;
    margin-bottom: 20px;
  }

  .logo img {
    max-width: 1000px;
    height: auto;
  }
  .navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #333;
    padding: 10px 0;
  }
  
  .navbar a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 5px;
  }
  
  .navbar a:hover {
    background-color: #555;
  }
</style>
<title>觉行教育7777777777</title>
</head>
<body>
  <div class="container">
    <div class="logo">
      <img src="/jx.png" alt="Logo">
    </div>
    <div class="navbar">
      <a href="/cgi-bin/listStu.sh">学生列表</a>
      <a href="/cgi-bin/listClass.sh">班级列表</a>
      <a href="/cgi-bin/listSubject.sh">科目列表</a>
      <a href="/cgi-bin/listTeacher.sh">老师列表</a>
      <a href="/cgi-bin/listScore.sh">成绩列表</a>
      <a href="/cgi-bin/listLesson.sh">课节列表</a>
      <a href="/addStu.html">添加学生</a>
      <a href="#">ver:</a>
    </div>
'
